package com.etpjava.service.impl;

import java.util.List;

import com.etpjava.dao.ManagementDao;
import com.etpjava.dao.impl.ManagementDaoImpl;
import com.etpjava.model.Manager;
import com.etpjava.service.ManagementService;

public class ManagementServiceImpl implements ManagementService {
	private ManagementDao mad=new ManagementDaoImpl();
	
	@Override
	public boolean maChangePassword(Manager mg) {
		
		return mad.changePassword(mg);
	}
	
	@Override
	public boolean maDelete(int id) {
		return mad.delete(selectID(id));
	}

	@Override
	public boolean maSave(Manager mg) {
	
		return mad.save(mg);
	}

	@Override
	public List<Manager> selectAll() {
		
		return mad.selectAll();
	}
	
	@Override
	public Manager selectID(int id){
		return mad.selectID(id);
	}
}
